Enable automatic numbering for engagements (e.g., ENG-0001)#13862
Closed
PoojasPatel013 wants to merge 5 commits intoDefectDojo:bugfixfrom
Closed
Enable automatic numbering for engagements (e.g., ENG-0001)#13862PoojasPatel013 wants to merge 5 commits intoDefectDojo:bugfixfrom
PoojasPatel013 wants to merge 5 commits intoDefectDojo:bugfixfrom
Conversation
Contributor
|
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #13592
This PR implements Automatic Engagement Numbering to provide readable, sequential IDs (e.g.,
ENG-001) alongside the internal database ID.1. Feature: Custom Engagement ID
@propertyon theEngagementmodel. It dynamically formats the existing Primary Key (PK) into a string (e.g., ID 5 ->ENG-005).3. Limitations & Future Work
ENG-{id:03d}) is currently hardcoded inmodels.py. Future enhancements could move this to System Settings and enable users to change the ID format (01) or (ENG-{id:02d}) etc.Test results
I have manually verified the stability and rendering of the changes:
ENG-XXXID appears in the list columns and detail headers.view_eng.htmlrender as integers and not raw template code.Documentation